import { Component, Inject } from '@angular/core';
import { Location } from '@angular/common';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';

@Component({
  selector: 'dialog-overview-common',
  templateUrl: 'dialog-overview-common.html',
  styleUrls: ['./dialog-overview-common.css']
})
export class DialogOverviewCommonComponent {

  constructor(
    public dialogRef: MatDialogRef<DialogOverviewCommonComponent>,
    @Inject(MAT_DIALOG_DATA) public data: any,
    private location: Location,
  ) { }

  onNoClick(): void {
    this.dialogRef.close();
  }

  goBack(): void {
    this.location.back();
  }

}
